<?php

class Application_Model_Mail2User extends Sgit_Model
{  
    protected $_name = 'mail2user';
    protected $_primary = 'id';
    
    function mailTo($id_mail,$to)
    {
        $record['id_mail']=$id_mail;
        foreach($to as $id_para)
        {
            $record['id_para']=$id_para;
            $this->insertRow($record);
        }
    }
}
